﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for B_Stock_ADjustment
/// </summary>
/// 
namespace Bestlife.ERP.BusinessRules
{
    public class B_Stock_ADjustment
    {
        public B_Stock_ADjustment()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public static Boolean stockadjustment(Bestlife.ERP.Entities.E_Stock_Adjustment stock,string user)
        {
            return Bestlife.ERP.DataAccess.D_Stock_Adjustment.adjuststock(stock, user);
        }


        public static Boolean stockdetailadjustment(Bestlife.ERP.Entities.E_Stock_Adjustment stock, string user)
        {
            return Bestlife.ERP.DataAccess.D_Stock_Adjustment.adjuststockdetails(stock, user);
        }

        public static string getstatus(string said)
        {
            return Bestlife.ERP.DataAccess.D_Stock_Adjustment.getstatus(said);
        }


        public static string getbranch(string said)
        {
            return Bestlife.ERP.DataAccess.D_Stock_Adjustment.getbranch(said);
        }

        public static int lastid()
        {
           return  Bestlife.ERP.DataAccess.D_Stock_Adjustment.lastGRNid();
        }

        //public static decimal getcurrentqty()
        //{
        //}
        public static Boolean stockadjustmentaddPanadura(Bestlife.ERP.Entities.E_Stock_Adjustment stock, string user)
        {
            return Bestlife.ERP.DataAccess.D_Stock_Adjustment.stockadjustmentaddPanadura(stock, user);
        }
        public static Boolean stockadjustmentaddKandy(Bestlife.ERP.Entities.E_Stock_Adjustment stock, string user)
        {

            return Bestlife.ERP.DataAccess.D_Stock_Adjustment.stockadjustmentaddKandy(stock, user);

        }
        public static Boolean stockadjustmentminusKandy(Bestlife.ERP.Entities.E_Stock_Adjustment stock, string user)
        {
            return Bestlife.ERP.DataAccess.D_Stock_Adjustment.stockadjustmentminusKandy(stock, user);
        }
        public static Boolean stockadjustmentminusPanadura(Bestlife.ERP.Entities.E_Stock_Adjustment stock, string user)
        {
            return Bestlife.ERP.DataAccess.D_Stock_Adjustment.stockadjustmentminusPanadura(stock, user);

        }
    }
}